<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<div class="middle padtop10 myclear">
	<div class="page-content">
		
		<!-- bread crumb -->
		<p id="bread-crumb">
			<a href="<?php echo base_url();?>">
				<?php echo $lang['home'];?>
			</a>
			<a href="<?php echo site_url('monitor/adsOnlineMonitoring');?>">
				<?php echo $lang['online_ads_monitoring'];?>
			</a>
			<?php echo $lang['online_zone_channel_monioring'];?>
		</p>
		<!-- end bread crumb -->
		<h3>
			<?php echo $lang['online_zone_channel_monioring'];?>
		</h3>
		<br>
		<form name="frmZone" action="<?php echo site_url('monitor/zoneChannelMonitoring/');?>" method="get">
			<p>
				channelID: <input type="text" name="channelid" size="30" value="<?php echo ($channelid > 0 ? $channelid : '');?>" />
				<input type="submit" value="Report" />
			</p>
			<?php if(isset($rows)){?>
			<br>
			<div>
				<p class="text-right padtop10">
					Tổng số bản ghi: <b><?php echo $records;?></b>
				</p>
				<table cellpadding="0" cellspacing="0" width="100%" border="1" class="martop10 tbl-list">
				<tr>
					<td class="td-label text-center"><strong>STT</strong></td>
					<td class="td-label text-right"><strong>Channel ID</strong></td>
					<td class="td-label"><strong>Channel Name</strong></td>
					<td class="td-label"><strong>Site</strong></td>
					<td class="td-label text-right"><strong>Zone ID</strong></td>
				</tr>
				<?php $j = 1; foreach ($rows as $item){?>
				<tr>
					<td class="text-center"><?php echo ($j + $page);?></td>
					<td class="text-right"><?php echo $item->channelid;?></td>
					<td><?php echo $item->name;?></td>
					<td><?php echo $item->site;?></td>
					<td class="text-right"><?php echo $item->zoneid;?></td>
				</tr>
				<?php $j++;	}	//end for?>
				<tr>
					<td class="td-label text-right" colspan="5">
						<?php
						if(isset($page_link))
							echo $page_link.' &nbsp;|&nbsp; <a href="'.site_url('monitor/zoneChannelMonitoring/?zoneid='.$channelid.'&limit=all').'">All</a>';
						else
						{
							echo '<a href="'.site_url('monitor/zoneBigDataMonitoring/?channelid='.$channelid).'">Pages</a>';
							echo '<input type="hidden" name="limit" value="all" />';
						}
						?>
					</td>
				</tr>
			</table>
			</div>
			<?php } else echo '<br>Not found data';?>
		</div>
	</form>
</div>
<br><br>